//
//  UIViewController+Extension.h
//  SYRJ
//
//  Created by cooptec on 2018/4/20.
//  Copyright © 2018年 Law. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (Extension)

- (void)showAlert:(NSString *)title Confirm:(void(^)(void))confirm;

//只有确定按钮
- (void)showSureAlert:(NSString *)title Confirm:(void(^)(void))confirm;

- (void)showAlert:(NSString *)title
          message:(NSString *)message
           titles:(NSArray *)titles
           colors:(NSArray *)colors
      cancelTitle:(NSString *)cancelTitle
          confirm:(void (^)(NSInteger index))confirmBlock;

- (void)showSheet:(NSString *)title
          message:(NSString *)message
           titles:(NSArray *)titles
           colors:(NSArray *)colors
      cancelTitle:(NSString *)cancelTitle
          confirm:(void (^)(NSInteger index))confirmBlock;

@end
